hw02: Main.o Rational.o
	g++ Main.o Rational.o -o hw02
	
Main.o: Main.cpp Rational.h
	g++ -Wall -c Main.cpp
	
Rational.o: Rational.cpp Rational.h
	g++ -Wall -c Rational.cpp 
clean:
	rm -f hw02
	rm -f *.o
